# Divisibility in Z

Definition: Let a,bZa, b \in \mathbb{Z}, we say that aa divides bb, when qZ:b=aq\exists \,\,q \in \mathbb{Z} : b = aq. Denoted with aba|b. We can also say that bb is a multiple of aa, or that aa is a divisor of bb.

The basic properties of the relation of divisibility in the ring of whole numbers are collected in the first theorem.

Theorem 1: For any numbers a,b,c,dZa, b, c, d \in \mathbb{Z}. (Proof & exercises at the end of the note).

  1. aaa|a, 1a1|a, (1)a(-1)|a, a0a|0.
  2. abbc    aca|b \land b|c \implies a|c
  3. abba    a=±ba|b \land b|a \implies a = \pm b
  4. abac    ab±cabda|b \land a|c \implies a|b \pm c \land a|bd
  5. akbka^k|b^k for k1k \geqslant 1     ab\implies a|b.

Theorem 2: abb0    aba|b \land b \neq 0 \implies |a| \leqslant |b|.

Theorem 3: Let ai,xi,bj,yj,cZa_i, x_i, b_j, y_j, c \in \mathbb{Z}. Then if

a1x1+a2x2++anxn=b1y1+b2y2++bmym+ca_1x_1 + a_2x_2 + \ldots + a_nx_n = b_1y_1 + b_2y_2 + \ldots + b_my_m + c

holds, and d:ai,bj:daidbi\exists d : \forall a_i, b_j : d | a_i \land d | b_i, then dcd|c.

Example: We will proof that the number An=52n+1A_n = 5^{2n} + 1 is, for every natural number n, divisible by 2, but not by 4.

An=(52)n+1=(1+(8)(3))n+1=1+k=1n(nk)(8k)(3k)+1=2+k=1n(nk)(8k)(3k)A_n = (5^2)^n + 1 = (1 + (8)(3))^n + 1 = 1 + \sum^n_{k=1}\binom{n}{k}(8^k)(3^k) + 1 = 2 + \sum^n_{k=1}\binom{n}{k}(8^k)(3^k)

from which 2An2|A_n. If 4An4|A_n then, according to T3, we would have 424|2. QED.

Let's denote the set of all divisors of a whole number aa with D(a)\mathcal{D}(a). It is trivial that D(0)=ZD(0) = \mathbb{Z}. If a,bZa, b \in \mathbb{Z} then we denote:

D(a,b):=D(a)  D(b)\mathcal{D}(a, b) := \mathcal{D}(a) \ \cap\ \mathcal{D}(b)

Note that the set D(a,b)\mathcal{D}(a, b) is always not empty ( aD(a,b)a \in \mathcal{D}(a,b), T1.1 ); Set D(0,0)=Z\mathcal{D}(0, 0) = \mathbb{Z} In all other cases the set D(a,b)\mathcal{D}(a, b) is finite ( a0    D(a,b)[ a;a ]a \neq 0 \implies \mathcal{D}(a, b) \subset [\ -|a|; |a|\ ], T2 ).

If a2+b2>0a^2 + b^2 > 0 then the biggest element of D(a,b)\mathcal{D}(a, b) is the biggest common divisor of aa and bb.

Theorem 3: (Division with remainder in Z\mathbb{Z}) If a,bZa, b \in \mathbb{Z} and b0b \neq 0 then, there exists exactly one pair of numbers q,rZq, r \in \mathbb{Z}, such that:

a=qb+r0r<ba = qb + r \,\, \land\,\, 0 \leqslant r \lt |b|

The number rr is a remainder of dividing aa by bb. The possible remainders of dividing whole numbers by natural number nn are numbers:

0,1,2,,m10, 1, 2, \dots, m-1

These numbers are called the Complete residue system modulo m.